<?php
/**
 * gpa_new Description
 * @package
 * @name admin_gallery
 * @filesource admin_gallery.php
 * @author Meta Sanjaya
 */

class admin_gallery extends Controller
{
    public $config = array();
    /**
     * @access public
     * @method __construct
     * @param void
     * @return void
     */
    public function  __construct()
    {
        parent::__construct();
        getInstance('config')->retrieve('gallery');
        foreach(getInstance('config')->getAll() as $key => $configs) {
            if($key=='gallery') {
                foreach($configs as $name => $value) {
                    $this->config[$name] = $value;
                }
            }
        }
    }

    public function __default($param)
    {
        $model = $this->getModel();
        $view = 'admin_gallery_html';
        $var['page_title'] = 'Gallery Control';
        $var['config'] = $this->config;
        $var['apps'] = getApps();
        $this->addVars($var);
        $this->renderView($view, $param['app']);
    }
}

?>